package com.woniu.swaggerConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import springfox.documentation.swagger.web.SwaggerResource;
import springfox.documentation.swagger.web.SwaggerResourcesProvider;

import java.util.Arrays;
import java.util.List;
/**
 * 配置swagger的继承列表数据
 * swagger统一集成到网关来进行访问
 * @author Administrator
 *
 */
@Component
public class SwaggerResourceList implements SwaggerResourcesProvider {

    /**
     * 下拉列表里面的资源列表配置
     */
    @Autowired
    private ResourceList resourceList;
    @Override
    public List<SwaggerResource> get() {
       return resourceList.getSr();
    }


}
